
#delimit cr
loc wage_var "hired_wage"
loc st_var "st"

cap drop is_fed_mw
cap drop is_st_mw

gen is_fed_mw = 0
gen is_st_mw  = 0

* Federal minimum wage
replace is_fed_mw = 1 if yr == 1992   & `wage_var' == 522186.9
replace is_fed_mw = 1 if yr == 1993   & `wage_var' == 18760
replace is_fed_mw = 1 if yr == 1994   & `wage_var' == 70
replace is_fed_mw = 1 if yr == 1995   & `wage_var' == 100
replace is_fed_mw = 1 if yr == 1996   & `wage_var' == 112
replace is_fed_mw = 1 if yr == 1997   & `wage_var' == 120
replace is_fed_mw = 1 if yr == 1998   & `wage_var' == 130
replace is_fed_mw = 1 if yr == 1999   & `wage_var' == 136
replace is_fed_mw = 1 if yr == 2000	& `wage_var' == 151
replace is_fed_mw = 1 if yr == 2001	& `wage_var' == 180
replace is_fed_mw = 1 if yr == 2002	& `wage_var' == 200
replace is_fed_mw = 1 if yr == 2003	& `wage_var' == 240
replace is_fed_mw = 1 if yr == 2004	& `wage_var' == 260
replace is_fed_mw = 1 if yr == 2005	& `wage_var' == 300
replace is_fed_mw = 1 if yr == 2006	& `wage_var' == 350
replace is_fed_mw = 1 if yr == 2007	& `wage_var' == 380
replace is_fed_mw = 1 if yr == 2008	& `wage_var' == 415
replace is_fed_mw = 1 if yr == 2009	& `wage_var' == 465
replace is_fed_mw = 1 if yr == 2010	& `wage_var' == 510
replace is_fed_mw = 1 if yr == 2011	& `wage_var' == 545
replace is_fed_mw = 1 if yr == 2012	& `wage_var' == 622
replace is_fed_mw = 1 if yr == 2013	& `wage_var' == 678
replace is_fed_mw = 1 if yr == 2014	& `wage_var' == 724
replace is_fed_mw = 1 if yr == 2015	& `wage_var' == 788
replace is_fed_mw = 1 if yr == 2016	& `wage_var' == 880
replace is_fed_mw = 1 if yr == 2017	& `wage_var' == 937
replace is_fed_mw = 1 if yr == 2018	& `wage_var' == 954
replace is_fed_mw = 1 if yr == 2019	& `wage_var' == 998



* Rio de Janeiro in 2000
replace is_`st_var'_mw = 1 if `st_var' == 33 & yr == 2000 & (`wage_var' == 220    | `wage_var' == floor(220)    |  `wage_var' == ceil(220))
replace is_`st_var'_mw = 1 if `st_var' == 33 & yr == 2001 & (`wage_var' == 220    | `wage_var' == floor(220)    |  `wage_var' == ceil(220))
replace is_`st_var'_mw = 1 if `st_var' == 33 & yr == 2001 & (`wage_var' == 223    | `wage_var' == floor(223)    |  `wage_var' == ceil(223))
replace is_`st_var'_mw = 1 if `st_var' == 33 & yr == 2001 & (`wage_var' == 226    | `wage_var' == floor(226)    |  `wage_var' == ceil(226))
replace is_`st_var'_mw = 1 if `st_var' == 33 & yr == 2002 & (`wage_var' == 240    | `wage_var' == floor(240)    |  `wage_var' == ceil(240))
replace is_`st_var'_mw = 1 if `st_var' == 33 & yr == 2002 & (`wage_var' == 250    | `wage_var' == floor(250)    |  `wage_var' == ceil(250))
replace is_`st_var'_mw = 1 if `st_var' == 33 & yr == 2002 & (`wage_var' == 260    | `wage_var' == floor(260)    |  `wage_var' == ceil(260))
replace is_`st_var'_mw = 1 if `st_var' == 33 & yr == 2002 & (`wage_var' == 270    | `wage_var' == floor(270)    |  `wage_var' == ceil(270))
replace is_`st_var'_mw = 1 if `st_var' == 33 & yr == 2002 & (`wage_var' == 280    | `wage_var' == floor(280)    |  `wage_var' == ceil(280))
replace is_`st_var'_mw = 1 if `st_var' == 33 & yr == 2003 & (`wage_var' == 265    | `wage_var' == floor(265)    |  `wage_var' == ceil(265))
replace is_`st_var'_mw = 1 if `st_var' == 33 & yr == 2003 & (`wage_var' == 276    | `wage_var' == floor(276)    |  `wage_var' == ceil(276))
replace is_`st_var'_mw = 1 if `st_var' == 33 & yr == 2003 & (`wage_var' == 286    | `wage_var' == floor(286)    |  `wage_var' == ceil(286))
replace is_`st_var'_mw = 1 if `st_var' == 33 & yr == 2003 & (`wage_var' == 296    | `wage_var' == floor(296)    |  `wage_var' == ceil(296))
replace is_`st_var'_mw = 1 if `st_var' == 33 & yr == 2003 & (`wage_var' == 306    | `wage_var' == floor(306)    |  `wage_var' == ceil(306))
replace is_`st_var'_mw = 1 if `st_var' == 33 & yr == 2003 & (`wage_var' == 316    | `wage_var' == floor(316)    |  `wage_var' == ceil(316))
replace is_`st_var'_mw = 1 if `st_var' == 33 & yr == 2004 & (`wage_var' == 290    | `wage_var' == floor(290)    |  `wage_var' == ceil(290))
replace is_`st_var'_mw = 1 if `st_var' == 33 & yr == 2004 & (`wage_var' == 305    | `wage_var' == floor(305)    |  `wage_var' == ceil(305))
replace is_`st_var'_mw = 1 if `st_var' == 33 & yr == 2004 & (`wage_var' == 316    | `wage_var' == floor(316)    |  `wage_var' == ceil(316))
replace is_`st_var'_mw = 1 if `st_var' == 33 & yr == 2004 & (`wage_var' == 327    | `wage_var' == floor(327)    |  `wage_var' == ceil(327))
replace is_`st_var'_mw = 1 if `st_var' == 33 & yr == 2004 & (`wage_var' == 338    | `wage_var' == floor(338)    |  `wage_var' == ceil(338))
replace is_`st_var'_mw = 1 if `st_var' == 33 & yr == 2004 & (`wage_var' == 349    | `wage_var' == floor(349)    |  `wage_var' == ceil(349))
replace is_`st_var'_mw = 1 if `st_var' == 33 & yr == 2005 & (`wage_var' == 310    | `wage_var' == floor(310)    |  `wage_var' == ceil(310))
replace is_`st_var'_mw = 1 if `st_var' == 33 & yr == 2005 & (`wage_var' == 326    | `wage_var' == floor(326)    |  `wage_var' == ceil(326))
replace is_`st_var'_mw = 1 if `st_var' == 33 & yr == 2005 & (`wage_var' == 338    | `wage_var' == floor(338)    |  `wage_var' == ceil(338))
replace is_`st_var'_mw = 1 if `st_var' == 33 & yr == 2005 & (`wage_var' == 350    | `wage_var' == floor(350)    |  `wage_var' == ceil(350))
replace is_`st_var'_mw = 1 if `st_var' == 33 & yr == 2005 & (`wage_var' == 362    | `wage_var' == floor(362)    |  `wage_var' == ceil(362))
replace is_`st_var'_mw = 1 if `st_var' == 33 & yr == 2005 & (`wage_var' == 373    | `wage_var' == floor(373)    |  `wage_var' == ceil(373))
replace is_`st_var'_mw = 1 if `st_var' == 33 & yr == 2006 & (`wage_var' == 351.12 | `wage_var' == floor(351.12) |  `wage_var' == ceil(351.12))
replace is_`st_var'_mw = 1 if `st_var' == 33 & yr == 2006 & (`wage_var' == 359.45 | `wage_var' == floor(359.45) |  `wage_var' == ceil(359.45))
replace is_`st_var'_mw = 1 if `st_var' == 33 & yr == 2006 & (`wage_var' == 383.05 | `wage_var' == floor(383.05) |  `wage_var' == ceil(383.05))
replace is_`st_var'_mw = 1 if `st_var' == 33 & yr == 2006 & (`wage_var' == 396.65 | `wage_var' == floor(396.65) |  `wage_var' == ceil(396.65))
replace is_`st_var'_mw = 1 if `st_var' == 33 & yr == 2006 & (`wage_var' == 410.25 | `wage_var' == floor(410.25) |  `wage_var' == ceil(410.25))
replace is_`st_var'_mw = 1 if `st_var' == 33 & yr == 2006 & (`wage_var' == 422.72 | `wage_var' == floor(422.72) |  `wage_var' == ceil(422.72))
replace is_`st_var'_mw = 1 if `st_var' == 33 & yr == 2007 & (`wage_var' == 404.02 | `wage_var' == floor(404.02) |  `wage_var' == ceil(404.02))
replace is_`st_var'_mw = 1 if `st_var' == 33 & yr == 2007 & (`wage_var' == 424.88 | `wage_var' == floor(424.88) |  `wage_var' == ceil(424.88))
replace is_`st_var'_mw = 1 if `st_var' == 33 & yr == 2007 & (`wage_var' == 440.52 | `wage_var' == floor(440.52) |  `wage_var' == ceil(440.52))
replace is_`st_var'_mw = 1 if `st_var' == 33 & yr == 2007 & (`wage_var' == 456.16 | `wage_var' == floor(456.16) |  `wage_var' == ceil(456.16))
replace is_`st_var'_mw = 1 if `st_var' == 33 & yr == 2007 & (`wage_var' == 471.79 | `wage_var' == floor(471.79) |  `wage_var' == ceil(471.79))
replace is_`st_var'_mw = 1 if `st_var' == 33 & yr == 2007 & (`wage_var' == 486.13 | `wage_var' == floor(486.13) |  `wage_var' == ceil(486.13))
replace is_`st_var'_mw = 1 if `st_var' == 33 & yr == 2008 & (`wage_var' == 447.25 | `wage_var' == floor(447.25) |  `wage_var' == ceil(447.25))
replace is_`st_var'_mw = 1 if `st_var' == 33 & yr == 2008 & (`wage_var' == 470.34 | `wage_var' == floor(470.34) |  `wage_var' == ceil(470.34))
replace is_`st_var'_mw = 1 if `st_var' == 33 & yr == 2008 & (`wage_var' == 487.66 | `wage_var' == floor(487.66) |  `wage_var' == ceil(487.66))
replace is_`st_var'_mw = 1 if `st_var' == 33 & yr == 2008 & (`wage_var' == 504.97 | `wage_var' == floor(504.97) |  `wage_var' == ceil(504.97))
replace is_`st_var'_mw = 1 if `st_var' == 33 & yr == 2008 & (`wage_var' == 522.27 | `wage_var' == floor(522.27) |  `wage_var' == ceil(522.27))
replace is_`st_var'_mw = 1 if `st_var' == 33 & yr == 2008 & (`wage_var' == 538.15 | `wage_var' == floor(538.15) |  `wage_var' == ceil(538.15))
replace is_`st_var'_mw = 1 if `st_var' == 33 & yr == 2008 & (`wage_var' == 632.85 | `wage_var' == floor(632.85) |  `wage_var' == ceil(632.85))
replace is_`st_var'_mw = 1 if `st_var' == 33 & yr == 2008 & (`wage_var' == 874.22 | `wage_var' == floor(874.22) |  `wage_var' == ceil(874.22))
replace is_`st_var'_mw = 1 if `st_var' == 33 & yr == 2008 & (`wage_var' == 1200 | `wage_var' == floor(1200) |  `wage_var' == ceil(1200))
replace is_`st_var'_mw = 1 if `st_var' == 33 & yr == 2009 & (`wage_var' == 487.5 | `wage_var' == floor(487.5) |  `wage_var' == ceil(487.5))
replace is_`st_var'_mw = 1 if `st_var' == 33 & yr == 2009 & (`wage_var' == 512.67 | `wage_var' == floor(512.67) |  `wage_var' == ceil(512.67))
replace is_`st_var'_mw = 1 if `st_var' == 33 & yr == 2009 & (`wage_var' == 531.55 | `wage_var' == floor(531.55) |  `wage_var' == ceil(531.55))
replace is_`st_var'_mw = 1 if `st_var' == 33 & yr == 2009 & (`wage_var' == 550.42 | `wage_var' == floor(550.42) |  `wage_var' == ceil(550.42))
replace is_`st_var'_mw = 1 if `st_var' == 33 & yr == 2009 & (`wage_var' == 569.27 | `wage_var' == floor(569.27) |  `wage_var' == ceil(569.27))
replace is_`st_var'_mw = 1 if `st_var' == 33 & yr == 2009 & (`wage_var' == 586.58 | `wage_var' == floor(586.58) |  `wage_var' == ceil(586.58))
replace is_`st_var'_mw = 1 if `st_var' == 33 & yr == 2009 & (`wage_var' == 689.81 | `wage_var' == floor(689.81) |  `wage_var' == ceil(689.81))
replace is_`st_var'_mw = 1 if `st_var' == 33 & yr == 2009 & (`wage_var' == 952.9 | `wage_var' == floor(952.9) |  `wage_var' == ceil(952.9))
replace is_`st_var'_mw = 1 if `st_var' == 33 & yr == 2009 & (`wage_var' == 1308 | `wage_var' == floor(1308) |  `wage_var' == ceil(1308))
replace is_`st_var'_mw = 1 if `st_var' == 33 & yr == 2010 & (`wage_var' == 553.31 | `wage_var' == floor(553.31) |  `wage_var' == ceil(553.31))
replace is_`st_var'_mw = 1 if `st_var' == 33 & yr == 2010 & (`wage_var' == 581.88 | `wage_var' == floor(581.88) |  `wage_var' == ceil(581.88))
replace is_`st_var'_mw = 1 if `st_var' == 33 & yr == 2010 & (`wage_var' == 603.31 | `wage_var' == floor(603.31) |  `wage_var' == ceil(603.31))
replace is_`st_var'_mw = 1 if `st_var' == 33 & yr == 2010 & (`wage_var' == 624.73 | `wage_var' == floor(624.73) |  `wage_var' == ceil(624.73))
replace is_`st_var'_mw = 1 if `st_var' == 33 & yr == 2010 & (`wage_var' == 646.12 | `wage_var' == floor(646.12) |  `wage_var' == ceil(646.12))
replace is_`st_var'_mw = 1 if `st_var' == 33 & yr == 2010 & (`wage_var' == 665.77 | `wage_var' == floor(665.77) |  `wage_var' == ceil(665.77))
replace is_`st_var'_mw = 1 if `st_var' == 33 & yr == 2010 & (`wage_var' == 782.93 | `wage_var' == floor(782.93) |  `wage_var' == ceil(782.93))
replace is_`st_var'_mw = 1 if `st_var' == 33 & yr == 2010 & (`wage_var' == 1081.54 | `wage_var' == floor(1081.54) |  `wage_var' == ceil(1081.54))
replace is_`st_var'_mw = 1 if `st_var' == 33 & yr == 2010 & (`wage_var' == 1484.58 | `wage_var' == floor(1484.58) |  `wage_var' == ceil(1484.58))
replace is_`st_var'_mw = 1 if `st_var' == 33 & yr == 2011 & (`wage_var' == 607.88 | `wage_var' == floor(607.88) |  `wage_var' == ceil(607.88))
replace is_`st_var'_mw = 1 if `st_var' == 33 & yr == 2011 & (`wage_var' == 639.26 | `wage_var' == floor(639.26) |  `wage_var' == ceil(639.26))
replace is_`st_var'_mw = 1 if `st_var' == 33 & yr == 2011 & (`wage_var' == 662.81 | `wage_var' == floor(662.81) |  `wage_var' == ceil(662.81))
replace is_`st_var'_mw = 1 if `st_var' == 33 & yr == 2011 & (`wage_var' == 686.34 | `wage_var' == floor(686.34) |  `wage_var' == ceil(686.34))
replace is_`st_var'_mw = 1 if `st_var' == 33 & yr == 2011 & (`wage_var' == 709.84 | `wage_var' == floor(709.84) |  `wage_var' == ceil(709.84))
replace is_`st_var'_mw = 1 if `st_var' == 33 & yr == 2011 & (`wage_var' == 731.43 | `wage_var' == floor(731.43) |  `wage_var' == ceil(731.43))
replace is_`st_var'_mw = 1 if `st_var' == 33 & yr == 2011 & (`wage_var' == 860.14 | `wage_var' == floor(860.14) |  `wage_var' == ceil(860.14))
replace is_`st_var'_mw = 1 if `st_var' == 33 & yr == 2011 & (`wage_var' == 1188.2 | `wage_var' == floor(1188.2) |  `wage_var' == ceil(1188.2))
replace is_`st_var'_mw = 1 if `st_var' == 33 & yr == 2011 & (`wage_var' == 1630.99 | `wage_var' == floor(1630.99) |  `wage_var' == ceil(1630.99))
replace is_`st_var'_mw = 1 if `st_var' == 33 & yr == 2012 & (`wage_var' == 693.77 | `wage_var' == floor(693.77) |  `wage_var' == ceil(693.77))
replace is_`st_var'_mw = 1 if `st_var' == 33 & yr == 2012 & (`wage_var' == 729.58 | `wage_var' == floor(729.58) |  `wage_var' == ceil(729.58))
replace is_`st_var'_mw = 1 if `st_var' == 33 & yr == 2012 & (`wage_var' == 756.46 | `wage_var' == floor(756.46) |  `wage_var' == ceil(756.46))
replace is_`st_var'_mw = 1 if `st_var' == 33 & yr == 2012 & (`wage_var' == 783.31 | `wage_var' == floor(783.31) |  `wage_var' == ceil(783.31))
replace is_`st_var'_mw = 1 if `st_var' == 33 & yr == 2012 & (`wage_var' == 810.14 | `wage_var' == floor(810.14) |  `wage_var' == ceil(810.14))
replace is_`st_var'_mw = 1 if `st_var' == 33 & yr == 2012 & (`wage_var' == 834.78 | `wage_var' == floor(834.78) |  `wage_var' == ceil(834.78))
replace is_`st_var'_mw = 1 if `st_var' == 33 & yr == 2012 & (`wage_var' == 981.67 | `wage_var' == floor(981.67) |  `wage_var' == ceil(981.67))
replace is_`st_var'_mw = 1 if `st_var' == 33 & yr == 2012 & (`wage_var' == 1356.09 | `wage_var' == floor(1356.09) |  `wage_var' == ceil(1356.09))
replace is_`st_var'_mw = 1 if `st_var' == 33 & yr == 2012 & (`wage_var' == 1861.44 | `wage_var' == floor(1861.44) |  `wage_var' == ceil(1861.44))
replace is_`st_var'_mw = 1 if `st_var' == 33 & yr == 2013 & (`wage_var' == 763.14 | `wage_var' == floor(763.14) |  `wage_var' == ceil(763.14))
replace is_`st_var'_mw = 1 if `st_var' == 33 & yr == 2013 & (`wage_var' == 802.53 | `wage_var' == floor(802.53) |  `wage_var' == ceil(802.53))
replace is_`st_var'_mw = 1 if `st_var' == 33 & yr == 2013 & (`wage_var' == 832.1 | `wage_var' == floor(832.1) |  `wage_var' == ceil(832.1))
replace is_`st_var'_mw = 1 if `st_var' == 33 & yr == 2013 & (`wage_var' == 861.64 | `wage_var' == floor(861.64) |  `wage_var' == ceil(861.64))
replace is_`st_var'_mw = 1 if `st_var' == 33 & yr == 2013 & (`wage_var' == 891.25 | `wage_var' == floor(891.25) |  `wage_var' == ceil(891.25))
replace is_`st_var'_mw = 1 if `st_var' == 33 & yr == 2013 & (`wage_var' == 918.25 | `wage_var' == floor(918.25) |  `wage_var' == ceil(918.25))
replace is_`st_var'_mw = 1 if `st_var' == 33 & yr == 2013 & (`wage_var' == 1079.83 | `wage_var' == floor(1079.83) |  `wage_var' == ceil(1079.83))
replace is_`st_var'_mw = 1 if `st_var' == 33 & yr == 2013 & (`wage_var' == 1491.69 | `wage_var' == floor(1491.69) |  `wage_var' == ceil(1491.69))
replace is_`st_var'_mw = 1 if `st_var' == 33 & yr == 2013 & (`wage_var' == 2047.58 | `wage_var' == floor(2047.58) |  `wage_var' == ceil(2047.58))
replace is_`st_var'_mw = 1 if `st_var' == 33 & yr == 2014 & (`wage_var' == 831.82 | `wage_var' == floor(831.82) |  `wage_var' == ceil(831.82))
replace is_`st_var'_mw = 1 if `st_var' == 33 & yr == 2014 & (`wage_var' == 874.75 | `wage_var' == floor(874.75) |  `wage_var' == ceil(874.75))
replace is_`st_var'_mw = 1 if `st_var' == 33 & yr == 2014 & (`wage_var' == 906.98 | `wage_var' == floor(906.98) |  `wage_var' == ceil(906.98))
replace is_`st_var'_mw = 1 if `st_var' == 33 & yr == 2014 & (`wage_var' == 939.18 | `wage_var' == floor(939.18) |  `wage_var' == ceil(939.18))
replace is_`st_var'_mw = 1 if `st_var' == 33 & yr == 2014 & (`wage_var' == 971.46 | `wage_var' == floor(971.46) |  `wage_var' == ceil(971.46))
replace is_`st_var'_mw = 1 if `st_var' == 33 & yr == 2014 & (`wage_var' == 1000.89 | `wage_var' == floor(1000.89) |  `wage_var' == ceil(1000.89))
replace is_`st_var'_mw = 1 if `st_var' == 33 & yr == 2014 & (`wage_var' == 1177.01 | `wage_var' == floor(1177.01) |  `wage_var' == ceil(1177.01))
replace is_`st_var'_mw = 1 if `st_var' == 33 & yr == 2014 & (`wage_var' == 1625.94 | `wage_var' == floor(1625.94) |  `wage_var' == ceil(1625.94))
replace is_`st_var'_mw = 1 if `st_var' == 33 & yr == 2014 & (`wage_var' == 2231.86 | `wage_var' == floor(2231.86) |  `wage_var' == ceil(2231.86))
replace is_`st_var'_mw = 1 if `st_var' == 33 & yr == 2015 & (`wage_var' == 953.47 | `wage_var' == floor(953.47) |  `wage_var' == ceil(953.47))
replace is_`st_var'_mw = 1 if `st_var' == 33 & yr == 2015 & (`wage_var' == 988.6 | `wage_var' == floor(988.6) |  `wage_var' == ceil(988.6))
replace is_`st_var'_mw = 1 if `st_var' == 33 & yr == 2015 & (`wage_var' == 1023.7 | `wage_var' == floor(1023.7) |  `wage_var' == ceil(1023.7))
replace is_`st_var'_mw = 1 if `st_var' == 33 & yr == 2015 & (`wage_var' == 1058.89 | `wage_var' == floor(1058.89) |  `wage_var' == ceil(1058.89))
replace is_`st_var'_mw = 1 if `st_var' == 33 & yr == 2015 & (`wage_var' == 1090.97 | `wage_var' == floor(1090.97) |  `wage_var' == ceil(1090.97))
replace is_`st_var'_mw = 1 if `st_var' == 33 & yr == 2015 & (`wage_var' == 1282.94 | `wage_var' == floor(1282.94) |  `wage_var' == ceil(1282.94))
replace is_`st_var'_mw = 1 if `st_var' == 33 & yr == 2015 & (`wage_var' == 1772.27 | `wage_var' == floor(1772.27) |  `wage_var' == ceil(1772.27))
replace is_`st_var'_mw = 1 if `st_var' == 33 & yr == 2015 & (`wage_var' == 2432.72 | `wage_var' == floor(2432.72) |  `wage_var' == ceil(2432.72))
replace is_`st_var'_mw = 1 if `st_var' == 33 & yr == 2016 & (`wage_var' == 1052.34 | `wage_var' == floor(1052.34) |  `wage_var' == ceil(1052.34))
replace is_`st_var'_mw = 1 if `st_var' == 33 & yr == 2016 & (`wage_var' == 1091.12 | `wage_var' == floor(1091.12) |  `wage_var' == ceil(1091.12))
replace is_`st_var'_mw = 1 if `st_var' == 33 & yr == 2016 & (`wage_var' == 1168.7 | `wage_var' == floor(1168.7) |  `wage_var' == ceil(1168.7))
replace is_`st_var'_mw = 1 if `st_var' == 33 & yr == 2016 & (`wage_var' == 1415.98 | `wage_var' == floor(1415.98) |  `wage_var' == ceil(1415.98))
replace is_`st_var'_mw = 1 if `st_var' == 33 & yr == 2016 & (`wage_var' == 2135.6 | `wage_var' == floor(2135.6) |  `wage_var' == ceil(2135.6))
replace is_`st_var'_mw = 1 if `st_var' == 33 & yr == 2016 & (`wage_var' == 2684.99 | `wage_var' == floor(2684.99) |  `wage_var' == ceil(2684.99))
replace is_`st_var'_mw = 1 if `st_var' == 33 & yr == 2017 & (`wage_var' == 1136.53 | `wage_var' == floor(1136.53) |  `wage_var' == ceil(1136.53))
replace is_`st_var'_mw = 1 if `st_var' == 33 & yr == 2017 & (`wage_var' == 1178.41 | `wage_var' == floor(1178.41) |  `wage_var' == ceil(1178.41))
replace is_`st_var'_mw = 1 if `st_var' == 33 & yr == 2017 & (`wage_var' == 1262.2 | `wage_var' == floor(1262.2) |  `wage_var' == ceil(1262.2))
replace is_`st_var'_mw = 1 if `st_var' == 33 & yr == 2017 & (`wage_var' == 1529.26 | `wage_var' == floor(1529.26) |  `wage_var' == ceil(1529.26))
replace is_`st_var'_mw = 1 if `st_var' == 33 & yr == 2017 & (`wage_var' == 2306.45 | `wage_var' == floor(2306.45) |  `wage_var' == ceil(2306.45))
replace is_`st_var'_mw = 1 if `st_var' == 33 & yr == 2017 & (`wage_var' == 2899.79 | `wage_var' == floor(2899.79) |  `wage_var' == ceil(2899.79))

* Rio Grande do Sul in 2001

replace is_`st_var'_mw = 1 if `st_var' == 43 & yr == 2001 & (`wage_var' == 230 | `wage_var' == floor(230) |  `wage_var' == ceil(230))
replace is_`st_var'_mw = 1 if `st_var' == 43 & yr == 2001 & (`wage_var' == 235 | `wage_var' == floor(235) |  `wage_var' == ceil(235))
replace is_`st_var'_mw = 1 if `st_var' == 43 & yr == 2001 & (`wage_var' == 240 | `wage_var' == floor(240) |  `wage_var' == ceil(240))
replace is_`st_var'_mw = 1 if `st_var' == 43 & yr == 2001 & (`wage_var' == 250 | `wage_var' == floor(250) |  `wage_var' == ceil(250))
replace is_`st_var'_mw = 1 if `st_var' == 43 & yr == 2002 & (`wage_var' == 260 | `wage_var' == floor(260) |  `wage_var' == ceil(260))
replace is_`st_var'_mw = 1 if `st_var' == 43 & yr == 2002 & (`wage_var' == 266 | `wage_var' == floor(266) |  `wage_var' == ceil(266))
replace is_`st_var'_mw = 1 if `st_var' == 43 & yr == 2002 & (`wage_var' == 272 | `wage_var' == floor(272) |  `wage_var' == ceil(272))
replace is_`st_var'_mw = 1 if `st_var' == 43 & yr == 2002 & (`wage_var' == 283 | `wage_var' == floor(283) |  `wage_var' == ceil(283))
replace is_`st_var'_mw = 1 if `st_var' == 43 & yr == 2003 & (`wage_var' == 312 | `wage_var' == floor(312) |  `wage_var' == ceil(312))
replace is_`st_var'_mw = 1 if `st_var' == 43 & yr == 2003 & (`wage_var' == 319.2 | `wage_var' == floor(319.2) |  `wage_var' == ceil(319.2))
replace is_`st_var'_mw = 1 if `st_var' == 43 & yr == 2003 & (`wage_var' == 326.4 | `wage_var' == floor(326.4) |  `wage_var' == ceil(326.4))
replace is_`st_var'_mw = 1 if `st_var' == 43 & yr == 2003 & (`wage_var' == 339.6 | `wage_var' == floor(339.6) |  `wage_var' == ceil(339.6))
replace is_`st_var'_mw = 1 if `st_var' == 43 & yr == 2004 & (`wage_var' == 338 | `wage_var' == floor(338) |  `wage_var' == ceil(338))
replace is_`st_var'_mw = 1 if `st_var' == 43 & yr == 2004 & (`wage_var' == 345.8 | `wage_var' == floor(345.8) |  `wage_var' == ceil(345.8))
replace is_`st_var'_mw = 1 if `st_var' == 43 & yr == 2004 & (`wage_var' == 353.6 | `wage_var' == floor(353.6) |  `wage_var' == ceil(353.6))
replace is_`st_var'_mw = 1 if `st_var' == 43 & yr == 2004 & (`wage_var' == 367.9 | `wage_var' == floor(367.9) |  `wage_var' == ceil(367.9))
replace is_`st_var'_mw = 1 if `st_var' == 43 & yr == 2005 & (`wage_var' == 374.67 | `wage_var' == floor(374.67) |  `wage_var' == ceil(374.67))
replace is_`st_var'_mw = 1 if `st_var' == 43 & yr == 2005 & (`wage_var' == 383.32 | `wage_var' == floor(383.32) |  `wage_var' == ceil(383.32))
replace is_`st_var'_mw = 1 if `st_var' == 43 & yr == 2005 & (`wage_var' == 391.96 | `wage_var' == floor(391.96) |  `wage_var' == ceil(391.96))
replace is_`st_var'_mw = 1 if `st_var' == 43 & yr == 2005 & (`wage_var' == 407.81 | `wage_var' == floor(407.81) |  `wage_var' == ceil(407.81))
replace is_`st_var'_mw = 1 if `st_var' == 43 & yr == 2006 & (`wage_var' == 405.95 | `wage_var' == floor(405.95) |  `wage_var' == ceil(405.95))
replace is_`st_var'_mw = 1 if `st_var' == 43 & yr == 2006 & (`wage_var' == 415.33 | `wage_var' == floor(415.33) |  `wage_var' == ceil(415.33))
replace is_`st_var'_mw = 1 if `st_var' == 43 & yr == 2006 & (`wage_var' == 424.69 | `wage_var' == floor(424.69) |  `wage_var' == ceil(424.69))
replace is_`st_var'_mw = 1 if `st_var' == 43 & yr == 2006 & (`wage_var' == 441.86 | `wage_var' == floor(441.86) |  `wage_var' == ceil(441.86))
replace is_`st_var'_mw = 1 if `st_var' == 43 & yr == 2007 & (`wage_var' == 430.23 | `wage_var' == floor(430.23) |  `wage_var' == ceil(430.23))
replace is_`st_var'_mw = 1 if `st_var' == 43 & yr == 2007 & (`wage_var' == 440.17 | `wage_var' == floor(440.17) |  `wage_var' == ceil(440.17))
replace is_`st_var'_mw = 1 if `st_var' == 43 & yr == 2007 & (`wage_var' == 450.09 | `wage_var' == floor(450.09) |  `wage_var' == ceil(450.09))
replace is_`st_var'_mw = 1 if `st_var' == 43 & yr == 2007 & (`wage_var' == 468.28 | `wage_var' == floor(468.28) |  `wage_var' == ceil(468.28))
replace is_`st_var'_mw = 1 if `st_var' == 43 & yr == 2008 & (`wage_var' == 477.4 | `wage_var' == floor(477.4) |  `wage_var' == ceil(477.4))
replace is_`st_var'_mw = 1 if `st_var' == 43 & yr == 2008 & (`wage_var' == 488.4 | `wage_var' == floor(488.4) |  `wage_var' == ceil(488.4))
replace is_`st_var'_mw = 1 if `st_var' == 43 & yr == 2008 & (`wage_var' == 499.4 | `wage_var' == floor(499.4) |  `wage_var' == ceil(499.4))
replace is_`st_var'_mw = 1 if `st_var' == 43 & yr == 2008 & (`wage_var' == 519.2 | `wage_var' == floor(519.2) |  `wage_var' == ceil(519.2))
replace is_`st_var'_mw = 1 if `st_var' == 43 & yr == 2009 & (`wage_var' == 511.29 | `wage_var' == floor(511.29) |  `wage_var' == ceil(511.29))
replace is_`st_var'_mw = 1 if `st_var' == 43 & yr == 2009 & (`wage_var' == 523.07 | `wage_var' == floor(523.07) |  `wage_var' == ceil(523.07))
replace is_`st_var'_mw = 1 if `st_var' == 43 & yr == 2009 & (`wage_var' == 534.85 | `wage_var' == floor(534.85) |  `wage_var' == ceil(534.85))
replace is_`st_var'_mw = 1 if `st_var' == 43 & yr == 2009 & (`wage_var' == 556.06 | `wage_var' == floor(556.06) |  `wage_var' == ceil(556.06))
replace is_`st_var'_mw = 1 if `st_var' == 43 & yr == 2010 & (`wage_var' == 546.57 | `wage_var' == floor(546.57) |  `wage_var' == ceil(546.57))
replace is_`st_var'_mw = 1 if `st_var' == 43 & yr == 2010 & (`wage_var' == 559.16 | `wage_var' == floor(559.16) |  `wage_var' == ceil(559.16))
replace is_`st_var'_mw = 1 if `st_var' == 43 & yr == 2010 & (`wage_var' == 571.75 | `wage_var' == floor(571.75) |  `wage_var' == ceil(571.75))
replace is_`st_var'_mw = 1 if `st_var' == 43 & yr == 2010 & (`wage_var' == 594.42 | `wage_var' == floor(594.42) |  `wage_var' == ceil(594.42))
replace is_`st_var'_mw = 1 if `st_var' == 43 & yr == 2011 & (`wage_var' == 610 | `wage_var' == floor(610) |  `wage_var' == ceil(610))
replace is_`st_var'_mw = 1 if `st_var' == 43 & yr == 2011 & (`wage_var' == 624.05 | `wage_var' == floor(624.05) |  `wage_var' == ceil(624.05))
replace is_`st_var'_mw = 1 if `st_var' == 43 & yr == 2011 & (`wage_var' == 638.2 | `wage_var' == floor(638.2) |  `wage_var' == ceil(638.2))
replace is_`st_var'_mw = 1 if `st_var' == 43 & yr == 2011 & (`wage_var' == 663.4 | `wage_var' == floor(663.4) |  `wage_var' == ceil(663.4))
replace is_`st_var'_mw = 1 if `st_var' == 43 & yr == 2012 & (`wage_var' == 700 | `wage_var' == floor(700) |  `wage_var' == ceil(700))
replace is_`st_var'_mw = 1 if `st_var' == 43 & yr == 2012 & (`wage_var' == 716.12 | `wage_var' == floor(716.12) |  `wage_var' == ceil(716.12))
replace is_`st_var'_mw = 1 if `st_var' == 43 & yr == 2012 & (`wage_var' == 732.36 | `wage_var' == floor(732.36) |  `wage_var' == ceil(732.36))
replace is_`st_var'_mw = 1 if `st_var' == 43 & yr == 2012 & (`wage_var' == 761.28 | `wage_var' == floor(761.28) |  `wage_var' == ceil(761.28))
replace is_`st_var'_mw = 1 if `st_var' == 43 & yr == 2013 & (`wage_var' == 770 | `wage_var' == floor(770) |  `wage_var' == ceil(770))
replace is_`st_var'_mw = 1 if `st_var' == 43 & yr == 2013 & (`wage_var' == 787.73 | `wage_var' == floor(787.73) |  `wage_var' == ceil(787.73))
replace is_`st_var'_mw = 1 if `st_var' == 43 & yr == 2013 & (`wage_var' == 805.59 | `wage_var' == floor(805.59) |  `wage_var' == ceil(805.59))
replace is_`st_var'_mw = 1 if `st_var' == 43 & yr == 2013 & (`wage_var' == 837.4 | `wage_var' == floor(837.4) |  `wage_var' == ceil(837.4))
replace is_`st_var'_mw = 1 if `st_var' == 43 & yr == 2014 & (`wage_var' == 868 | `wage_var' == floor(868) |  `wage_var' == ceil(868))
replace is_`st_var'_mw = 1 if `st_var' == 43 & yr == 2014 & (`wage_var' == 887.98 | `wage_var' == floor(887.98) |  `wage_var' == ceil(887.98))
replace is_`st_var'_mw = 1 if `st_var' == 43 & yr == 2014 & (`wage_var' == 908.12 | `wage_var' == floor(908.12) |  `wage_var' == ceil(908.12))
replace is_`st_var'_mw = 1 if `st_var' == 43 & yr == 2014 & (`wage_var' == 943.98 | `wage_var' == floor(943.98) |  `wage_var' == ceil(943.98))
replace is_`st_var'_mw = 1 if `st_var' == 43 & yr == 2015 & (`wage_var' == 1006.88 | `wage_var' == floor(1006.88) |  `wage_var' == ceil(1006.88))
replace is_`st_var'_mw = 1 if `st_var' == 43 & yr == 2015 & (`wage_var' == 1030.06 | `wage_var' == floor(1030.06) |  `wage_var' == ceil(1030.06))
replace is_`st_var'_mw = 1 if `st_var' == 43 & yr == 2015 & (`wage_var' == 1053.42 | `wage_var' == floor(1053.42) |  `wage_var' == ceil(1053.42))
replace is_`st_var'_mw = 1 if `st_var' == 43 & yr == 2015 & (`wage_var' == 1095.02 | `wage_var' == floor(1095.02) |  `wage_var' == ceil(1095.02))
replace is_`st_var'_mw = 1 if `st_var' == 43 & yr == 2016 & (`wage_var' == 1103.66 | `wage_var' == floor(1103.66) |  `wage_var' == ceil(1103.66))
replace is_`st_var'_mw = 1 if `st_var' == 43 & yr == 2016 & (`wage_var' == 1129.07 | `wage_var' == floor(1129.07) |  `wage_var' == ceil(1129.07))
replace is_`st_var'_mw = 1 if `st_var' == 43 & yr == 2016 & (`wage_var' == 1154.68 | `wage_var' == floor(1154.68) |  `wage_var' == ceil(1154.68))
replace is_`st_var'_mw = 1 if `st_var' == 43 & yr == 2016 & (`wage_var' == 1200.28 | `wage_var' == floor(1200.28) |  `wage_var' == ceil(1200.28))
replace is_`st_var'_mw = 1 if `st_var' == 43 & yr == 2017 & (`wage_var' == 1175.15 | `wage_var' == floor(1175.15) |  `wage_var' == ceil(1175.15))
replace is_`st_var'_mw = 1 if `st_var' == 43 & yr == 2017 & (`wage_var' == 1202.2 | `wage_var' == floor(1202.2) |  `wage_var' == ceil(1202.2))
replace is_`st_var'_mw = 1 if `st_var' == 43 & yr == 2017 & (`wage_var' == 1229.47 | `wage_var' == floor(1229.47) |  `wage_var' == ceil(1229.47))
replace is_`st_var'_mw = 1 if `st_var' == 43 & yr == 2017 & (`wage_var' == 1278.03 | `wage_var' == floor(1278.03) |  `wage_var' == ceil(1278.03))
replace is_`st_var'_mw = 1 if `st_var' == 43 & yr == 2018 & (`wage_var' == 1196.47 | `wage_var' == floor(1196.47) |  `wage_var' == ceil(1196.47))
replace is_`st_var'_mw = 1 if `st_var' == 43 & yr == 2018 & (`wage_var' == 1224.01 | `wage_var' == floor(1224.01) |  `wage_var' == ceil(1224.01))
replace is_`st_var'_mw = 1 if `st_var' == 43 & yr == 2018 & (`wage_var' == 1251.78 | `wage_var' == floor(1251.78) |  `wage_var' == ceil(1251.78))
replace is_`st_var'_mw = 1 if `st_var' == 43 & yr == 2018 & (`wage_var' == 1301.22 | `wage_var' == floor(1301.22) |  `wage_var' == ceil(1301.22))


* Santa Catarina in 2009. 
 
replace is_`st_var'_mw = 1 if `st_var' == 42 & yr == 2010 & (`wage_var' == 587 | `wage_var' == floor(587) |  `wage_var' == ceil(587))
replace is_`st_var'_mw = 1 if `st_var' == 42 & yr == 2010 & (`wage_var' == 616 | `wage_var' == floor(616) |  `wage_var' == ceil(616))
replace is_`st_var'_mw = 1 if `st_var' == 42 & yr == 2010 & (`wage_var' == 647 | `wage_var' == floor(647) |  `wage_var' == ceil(647))
replace is_`st_var'_mw = 1 if `st_var' == 42 & yr == 2010 & (`wage_var' == 679 | `wage_var' == floor(679) |  `wage_var' == ceil(679))
replace is_`st_var'_mw = 1 if `st_var' == 42 & yr == 2011 & (`wage_var' == 630 | `wage_var' == floor(630) |  `wage_var' == ceil(630))
replace is_`st_var'_mw = 1 if `st_var' == 42 & yr == 2011 & (`wage_var' == 660 | `wage_var' == floor(660) |  `wage_var' == ceil(660))
replace is_`st_var'_mw = 1 if `st_var' == 42 & yr == 2011 & (`wage_var' == 695 | `wage_var' == floor(695) |  `wage_var' == ceil(695))
replace is_`st_var'_mw = 1 if `st_var' == 42 & yr == 2011 & (`wage_var' == 730 | `wage_var' == floor(730) |  `wage_var' == ceil(730))
replace is_`st_var'_mw = 1 if `st_var' == 42 & yr == 2012 & (`wage_var' == 700 | `wage_var' == floor(700) |  `wage_var' == ceil(700))
replace is_`st_var'_mw = 1 if `st_var' == 42 & yr == 2012 & (`wage_var' == 725 | `wage_var' == floor(725) |  `wage_var' == ceil(725))
replace is_`st_var'_mw = 1 if `st_var' == 42 & yr == 2012 & (`wage_var' == 764 | `wage_var' == floor(764) |  `wage_var' == ceil(764))
replace is_`st_var'_mw = 1 if `st_var' == 42 & yr == 2012 & (`wage_var' == 800 | `wage_var' == floor(800) |  `wage_var' == ceil(800))
replace is_`st_var'_mw = 1 if `st_var' == 42 & yr == 2013 & (`wage_var' == 765 | `wage_var' == floor(765) |  `wage_var' == ceil(765))
replace is_`st_var'_mw = 1 if `st_var' == 42 & yr == 2013 & (`wage_var' == 793 | `wage_var' == floor(793) |  `wage_var' == ceil(793))
replace is_`st_var'_mw = 1 if `st_var' == 42 & yr == 2013 & (`wage_var' == 835 | `wage_var' == floor(835) |  `wage_var' == ceil(835))
replace is_`st_var'_mw = 1 if `st_var' == 42 & yr == 2013 & (`wage_var' == 875 | `wage_var' == floor(875) |  `wage_var' == ceil(875))
replace is_`st_var'_mw = 1 if `st_var' == 42 & yr == 2014 & (`wage_var' == 835 | `wage_var' == floor(835) |  `wage_var' == ceil(835))
replace is_`st_var'_mw = 1 if `st_var' == 42 & yr == 2014 & (`wage_var' == 867 | `wage_var' == floor(867) |  `wage_var' == ceil(867))
replace is_`st_var'_mw = 1 if `st_var' == 42 & yr == 2014 & (`wage_var' == 912 | `wage_var' == floor(912) |  `wage_var' == ceil(912))
replace is_`st_var'_mw = 1 if `st_var' == 42 & yr == 2014 & (`wage_var' == 957 | `wage_var' == floor(957) |  `wage_var' == ceil(957))
replace is_`st_var'_mw = 1 if `st_var' == 42 & yr == 2015 & (`wage_var' == 908 | `wage_var' == floor(908) |  `wage_var' == ceil(908))
replace is_`st_var'_mw = 1 if `st_var' == 42 & yr == 2015 & (`wage_var' == 943 | `wage_var' == floor(943) |  `wage_var' == ceil(943))
replace is_`st_var'_mw = 1 if `st_var' == 42 & yr == 2015 & (`wage_var' == 994 | `wage_var' == floor(994) |  `wage_var' == ceil(994))
replace is_`st_var'_mw = 1 if `st_var' == 42 & yr == 2015 & (`wage_var' == 1042 | `wage_var' == floor(1042) |  `wage_var' == ceil(1042))
replace is_`st_var'_mw = 1 if `st_var' == 42 & yr == 2016 & (`wage_var' == 1009 | `wage_var' == floor(1009) |  `wage_var' == ceil(1009))
replace is_`st_var'_mw = 1 if `st_var' == 42 & yr == 2016 & (`wage_var' == 1048 | `wage_var' == floor(1048) |  `wage_var' == ceil(1048))
replace is_`st_var'_mw = 1 if `st_var' == 42 & yr == 2016 & (`wage_var' == 1104 | `wage_var' == floor(1104) |  `wage_var' == ceil(1104))
replace is_`st_var'_mw = 1 if `st_var' == 42 & yr == 2016 & (`wage_var' == 1158 | `wage_var' == floor(1158) |  `wage_var' == ceil(1158))
replace is_`st_var'_mw = 1 if `st_var' == 42 & yr == 2017 & (`wage_var' == 1078 | `wage_var' == floor(1078) |  `wage_var' == ceil(1078))
replace is_`st_var'_mw = 1 if `st_var' == 42 & yr == 2017 & (`wage_var' == 1119 | `wage_var' == floor(1119) |  `wage_var' == ceil(1119))
replace is_`st_var'_mw = 1 if `st_var' == 42 & yr == 2017 & (`wage_var' == 1179 | `wage_var' == floor(1179) |  `wage_var' == ceil(1179))
replace is_`st_var'_mw = 1 if `st_var' == 42 & yr == 2017 & (`wage_var' == 1235 | `wage_var' == floor(1235) |  `wage_var' == ceil(1235))

* São Paulo in 2007
replace is_`st_var'_mw = 1 if `st_var' == 35 & yr == 2007 & (`wage_var' == 410     | `wage_var' == floor(410)     |  `wage_var' == ceil(410))
replace is_`st_var'_mw = 1 if `st_var' == 35 & yr == 2007 & (`wage_var' == 450     | `wage_var' == floor(450)     |  `wage_var' == ceil(450))
replace is_`st_var'_mw = 1 if `st_var' == 35 & yr == 2007 & (`wage_var' == 490     | `wage_var' == floor(490)     |  `wage_var' == ceil(490))
replace is_`st_var'_mw = 1 if `st_var' == 35 & yr == 2008 & (`wage_var' == 450     | `wage_var' == floor(450)     |  `wage_var' == ceil(450))
replace is_`st_var'_mw = 1 if `st_var' == 35 & yr == 2008 & (`wage_var' == 475     | `wage_var' == floor(475)     |  `wage_var' == ceil(475))
replace is_`st_var'_mw = 1 if `st_var' == 35 & yr == 2008 & (`wage_var' == 505     | `wage_var' == floor(505)     |  `wage_var' == ceil(505))
replace is_`st_var'_mw = 1 if `st_var' == 35 & yr == 2009 & (`wage_var' == 505     | `wage_var' == floor(505)     |  `wage_var' == ceil(505))
replace is_`st_var'_mw = 1 if `st_var' == 35 & yr == 2009 & (`wage_var' == 530     | `wage_var' == floor(530)     |  `wage_var' == ceil(530))
replace is_`st_var'_mw = 1 if `st_var' == 35 & yr == 2009 & (`wage_var' == 545     | `wage_var' == floor(545)     |  `wage_var' == ceil(545))
replace is_`st_var'_mw = 1 if `st_var' == 35 & yr == 2010 & (`wage_var' == 560     | `wage_var' == floor(560)     |  `wage_var' == ceil(560))
replace is_`st_var'_mw = 1 if `st_var' == 35 & yr == 2010 & (`wage_var' == 570     | `wage_var' == floor(570)     |  `wage_var' == ceil(570))
replace is_`st_var'_mw = 1 if `st_var' == 35 & yr == 2010 & (`wage_var' == 580     | `wage_var' == floor(580)     |  `wage_var' == ceil(580))
replace is_`st_var'_mw = 1 if `st_var' == 35 & yr == 2011 & (`wage_var' == 600     | `wage_var' == floor(600)     |  `wage_var' == ceil(600))
replace is_`st_var'_mw = 1 if `st_var' == 35 & yr == 2011 & (`wage_var' == 610     | `wage_var' == floor(610)     |  `wage_var' == ceil(610))
replace is_`st_var'_mw = 1 if `st_var' == 35 & yr == 2011 & (`wage_var' == 620     | `wage_var' == floor(620)     |  `wage_var' == ceil(620))
replace is_`st_var'_mw = 1 if `st_var' == 35 & yr == 2012 & (`wage_var' == 690     | `wage_var' == floor(690)     |  `wage_var' == ceil(690))
replace is_`st_var'_mw = 1 if `st_var' == 35 & yr == 2012 & (`wage_var' == 700     | `wage_var' == floor(700)     |  `wage_var' == ceil(700))
replace is_`st_var'_mw = 1 if `st_var' == 35 & yr == 2012 & (`wage_var' == 710     | `wage_var' == floor(710)     |  `wage_var' == ceil(710))
replace is_`st_var'_mw = 1 if `st_var' == 35 & yr == 2013 & (`wage_var' == 755     | `wage_var' == floor(755)     |  `wage_var' == ceil(755))
replace is_`st_var'_mw = 1 if `st_var' == 35 & yr == 2013 & (`wage_var' == 765     | `wage_var' == floor(765)     |  `wage_var' == ceil(765))
replace is_`st_var'_mw = 1 if `st_var' == 35 & yr == 2013 & (`wage_var' == 775     | `wage_var' == floor(775)     |  `wage_var' == ceil(775))
replace is_`st_var'_mw = 1 if `st_var' == 35 & yr == 2014 & (`wage_var' == 810     | `wage_var' == floor(810)     |  `wage_var' == ceil(810))
replace is_`st_var'_mw = 1 if `st_var' == 35 & yr == 2014 & (`wage_var' == 820     | `wage_var' == floor(820)     |  `wage_var' == ceil(820))
replace is_`st_var'_mw = 1 if `st_var' == 35 & yr == 2014 & (`wage_var' == 835     | `wage_var' == floor(835)     |  `wage_var' == ceil(835))
replace is_`st_var'_mw = 1 if `st_var' == 35 & yr == 2015 & (`wage_var' == 905     | `wage_var' == floor(905)     |  `wage_var' == ceil(905))
replace is_`st_var'_mw = 1 if `st_var' == 35 & yr == 2015 & (`wage_var' == 920     | `wage_var' == floor(920)     |  `wage_var' == ceil(920))
replace is_`st_var'_mw = 1 if `st_var' == 35 & yr == 2016 & (`wage_var' == 1000    | `wage_var' == floor(1000)    |  `wage_var' == ceil(1000))
replace is_`st_var'_mw = 1 if `st_var' == 35 & yr == 2016 & (`wage_var' == 1017    | `wage_var' == floor(1017)    |  `wage_var' == ceil(1017))
replace is_`st_var'_mw = 1 if `st_var' == 35 & yr == 2017 & (`wage_var' == 1076.2  | `wage_var' == floor(1076.2)  |  `wage_var' == ceil(1076.2))
replace is_`st_var'_mw = 1 if `st_var' == 35 & yr == 2017 & (`wage_var' == 1094.5  | `wage_var' == floor(1094.5)  |  `wage_var' == ceil(1094.5))
replace is_`st_var'_mw = 1 if `st_var' == 35 & yr == 2018 & (`wage_var' == 1108.38 | `wage_var' == floor(1108.38) |  `wage_var' == ceil(1108.38))
replace is_`st_var'_mw = 1 if `st_var' == 35 & yr == 2018 & (`wage_var' == 1127.23 | `wage_var' == floor(1127.23) |  `wage_var' == ceil(1127.23))


* Paraná in 2006 

replace is_`st_var'_mw = 1 if `st_var' == 41 & yr == 2006 & (`wage_var' == 427 | `wage_var' == floor(427) |  `wage_var' == ceil(427))
replace is_`st_var'_mw = 1 if `st_var' == 41 & yr == 2006 & (`wage_var' == 429.12 | `wage_var' == floor(429.12) |  `wage_var' == ceil(429.12))
replace is_`st_var'_mw = 1 if `st_var' == 41 & yr == 2006 & (`wage_var' == 431.28 | `wage_var' == floor(431.28) |  `wage_var' == ceil(431.28))
replace is_`st_var'_mw = 1 if `st_var' == 41 & yr == 2006 & (`wage_var' == 433.44 | `wage_var' == floor(433.44) |  `wage_var' == ceil(433.44))
replace is_`st_var'_mw = 1 if `st_var' == 41 & yr == 2006 & (`wage_var' == 435.61 | `wage_var' == floor(435.61) |  `wage_var' == ceil(435.61))
replace is_`st_var'_mw = 1 if `st_var' == 41 & yr == 2006 & (`wage_var' == 437.8 | `wage_var' == floor(437.8) |  `wage_var' == ceil(437.8))
replace is_`st_var'_mw = 1 if `st_var' == 41 & yr == 2007 & (`wage_var' == 475.2 | `wage_var' == floor(475.2) |  `wage_var' == ceil(475.2))
replace is_`st_var'_mw = 1 if `st_var' == 41 & yr == 2007 & (`wage_var' == 473 | `wage_var' == floor(473) |  `wage_var' == ceil(473))
replace is_`st_var'_mw = 1 if `st_var' == 41 & yr == 2007 & (`wage_var' == 468.6 | `wage_var' == floor(468.6) |  `wage_var' == ceil(468.6))
replace is_`st_var'_mw = 1 if `st_var' == 41 & yr == 2007 & (`wage_var' == 466.4 | `wage_var' == floor(466.4) |  `wage_var' == ceil(466.4))
replace is_`st_var'_mw = 1 if `st_var' == 41 & yr == 2007 & (`wage_var' == 464.2 | `wage_var' == floor(464.2) |  `wage_var' == ceil(464.2))
replace is_`st_var'_mw = 1 if `st_var' == 41 & yr == 2007 & (`wage_var' == 462 | `wage_var' == floor(462) |  `wage_var' == ceil(462))
replace is_`st_var'_mw = 1 if `st_var' == 41 & yr == 2008 & (`wage_var' == 548 | `wage_var' == floor(548) |  `wage_var' == ceil(548))
replace is_`st_var'_mw = 1 if `st_var' == 41 & yr == 2008 & (`wage_var' == 544 | `wage_var' == floor(544) |  `wage_var' == ceil(544))
replace is_`st_var'_mw = 1 if `st_var' == 41 & yr == 2008 & (`wage_var' == 540 | `wage_var' == floor(540) |  `wage_var' == ceil(540))
replace is_`st_var'_mw = 1 if `st_var' == 41 & yr == 2008 & (`wage_var' == 535 | `wage_var' == floor(535) |  `wage_var' == ceil(535))
replace is_`st_var'_mw = 1 if `st_var' == 41 & yr == 2008 & (`wage_var' == 531 | `wage_var' == floor(531) |  `wage_var' == ceil(531))
replace is_`st_var'_mw = 1 if `st_var' == 41 & yr == 2008 & (`wage_var' == 527 | `wage_var' == floor(527) |  `wage_var' == ceil(527))
replace is_`st_var'_mw = 1 if `st_var' == 41 & yr == 2009 & (`wage_var' == 629.65 | `wage_var' == floor(629.65) |  `wage_var' == ceil(629.65))
replace is_`st_var'_mw = 1 if `st_var' == 41 & yr == 2009 & (`wage_var' == 625.06 | `wage_var' == floor(625.06) |  `wage_var' == ceil(625.06))
replace is_`st_var'_mw = 1 if `st_var' == 41 & yr == 2009 & (`wage_var' == 620.46 | `wage_var' == floor(620.46) |  `wage_var' == ceil(620.46))
replace is_`st_var'_mw = 1 if `st_var' == 41 & yr == 2009 & (`wage_var' == 614.72 | `wage_var' == floor(614.72) |  `wage_var' == ceil(614.72))
replace is_`st_var'_mw = 1 if `st_var' == 41 & yr == 2009 & (`wage_var' == 610.12 | `wage_var' == floor(610.12) |  `wage_var' == ceil(610.12))
replace is_`st_var'_mw = 1 if `st_var' == 41 & yr == 2009 & (`wage_var' == 605.52 | `wage_var' == floor(605.52) |  `wage_var' == ceil(605.52))
replace is_`st_var'_mw = 1 if `st_var' == 41 & yr == 2010 & (`wage_var' == 765 | `wage_var' == floor(765) |  `wage_var' == ceil(765))
replace is_`st_var'_mw = 1 if `st_var' == 41 & yr == 2010 & (`wage_var' == 714 | `wage_var' == floor(714) |  `wage_var' == ceil(714))
replace is_`st_var'_mw = 1 if `st_var' == 41 & yr == 2010 & (`wage_var' == 688.5 | `wage_var' == floor(688.5) |  `wage_var' == ceil(688.5))
replace is_`st_var'_mw = 1 if `st_var' == 41 & yr == 2010 & (`wage_var' == 663 | `wage_var' == floor(663) |  `wage_var' == ceil(663))
replace is_`st_var'_mw = 1 if `st_var' == 41 & yr == 2011 & (`wage_var' == 708.74 | `wage_var' == floor(708.74) |  `wage_var' == ceil(708.74))
replace is_`st_var'_mw = 1 if `st_var' == 41 & yr == 2011 & (`wage_var' == 736 | `wage_var' == floor(736) |  `wage_var' == ceil(736))
replace is_`st_var'_mw = 1 if `st_var' == 41 & yr == 2011 & (`wage_var' == 763.26 | `wage_var' == floor(763.26) |  `wage_var' == ceil(763.26))
replace is_`st_var'_mw = 1 if `st_var' == 41 & yr == 2011 & (`wage_var' == 817.78 | `wage_var' == floor(817.78) |  `wage_var' == ceil(817.78))
replace is_`st_var'_mw = 1 if `st_var' == 41 & yr == 2012 & (`wage_var' == 783.2 | `wage_var' == floor(783.2) |  `wage_var' == ceil(783.2))
replace is_`st_var'_mw = 1 if `st_var' == 41 & yr == 2012 & (`wage_var' == 811.8 | `wage_var' == floor(811.8) |  `wage_var' == ceil(811.8))
replace is_`st_var'_mw = 1 if `st_var' == 41 & yr == 2012 & (`wage_var' == 842.6 | `wage_var' == floor(842.6) |  `wage_var' == ceil(842.6))
replace is_`st_var'_mw = 1 if `st_var' == 41 & yr == 2012 & (`wage_var' == 904.2 | `wage_var' == floor(904.2) |  `wage_var' == ceil(904.2))
replace is_`st_var'_mw = 1 if `st_var' == 41 & yr == 2013 & (`wage_var' == 882.59 | `wage_var' == floor(882.59) |  `wage_var' == ceil(882.59))
replace is_`st_var'_mw = 1 if `st_var' == 41 & yr == 2013 & (`wage_var' == 914.82 | `wage_var' == floor(914.82) |  `wage_var' == ceil(914.82))
replace is_`st_var'_mw = 1 if `st_var' == 41 & yr == 2013 & (`wage_var' == 948.53 | `wage_var' == floor(948.53) |  `wage_var' == ceil(948.53))
replace is_`st_var'_mw = 1 if `st_var' == 41 & yr == 2013 & (`wage_var' == 1018.94 | `wage_var' == floor(1018.94) |  `wage_var' == ceil(1018.94))
replace is_`st_var'_mw = 1 if `st_var' == 41 & yr == 2014 & (`wage_var' == 948.2 | `wage_var' == floor(948.2) |  `wage_var' == ceil(948.2))
replace is_`st_var'_mw = 1 if `st_var' == 41 & yr == 2014 & (`wage_var' == 983.4 | `wage_var' == floor(983.4) |  `wage_var' == ceil(983.4))
replace is_`st_var'_mw = 1 if `st_var' == 41 & yr == 2014 & (`wage_var' == 1020.8 | `wage_var' == floor(1020.8) |  `wage_var' == ceil(1020.8))
replace is_`st_var'_mw = 1 if `st_var' == 41 & yr == 2014 & (`wage_var' == 1095.6 | `wage_var' == floor(1095.6) |  `wage_var' == ceil(1095.6))
replace is_`st_var'_mw = 1 if `st_var' == 41 & yr == 2015 & (`wage_var' == 1032.02 | `wage_var' == floor(1032.02) |  `wage_var' == ceil(1032.02))
replace is_`st_var'_mw = 1 if `st_var' == 41 & yr == 2015 & (`wage_var' == 1070.33 | `wage_var' == floor(1070.33) |  `wage_var' == ceil(1070.33))
replace is_`st_var'_mw = 1 if `st_var' == 41 & yr == 2015 & (`wage_var' == 1111.04 | `wage_var' == floor(1111.04) |  `wage_var' == ceil(1111.04))
replace is_`st_var'_mw = 1 if `st_var' == 41 & yr == 2015 & (`wage_var' == 1192.45 | `wage_var' == floor(1192.45) |  `wage_var' == ceil(1192.45))
replace is_`st_var'_mw = 1 if `st_var' == 41 & yr == 2016 & (`wage_var' == 1148.4 | `wage_var' == floor(1148.4) |  `wage_var' == ceil(1148.4))
replace is_`st_var'_mw = 1 if `st_var' == 41 & yr == 2016 & (`wage_var' == 1190.2 | `wage_var' == floor(1190.2) |  `wage_var' == ceil(1190.2))
replace is_`st_var'_mw = 1 if `st_var' == 41 & yr == 2016 & (`wage_var' == 1234.2 | `wage_var' == floor(1234.2) |  `wage_var' == ceil(1234.2))
replace is_`st_var'_mw = 1 if `st_var' == 41 & yr == 2016 & (`wage_var' == 1326.6 | `wage_var' == floor(1326.6) |  `wage_var' == ceil(1326.6))
replace is_`st_var'_mw = 1 if `st_var' == 41 & yr == 2017 & (`wage_var' == 1223.2 | `wage_var' == floor(1223.2) |  `wage_var' == ceil(1223.2))
replace is_`st_var'_mw = 1 if `st_var' == 41 & yr == 2017 & (`wage_var' == 1269.4 | `wage_var' == floor(1269.4) |  `wage_var' == ceil(1269.4))
replace is_`st_var'_mw = 1 if `st_var' == 41 & yr == 2017 & (`wage_var' == 1315.6 | `wage_var' == floor(1315.6) |  `wage_var' == ceil(1315.6))
replace is_`st_var'_mw = 1 if `st_var' == 41 & yr == 2017 & (`wage_var' == 1414.6 | `wage_var' == floor(1414.6) |  `wage_var' == ceil(1414.6))



